home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / packet / aprs75c / gps.txt < prev    next >
Text File  |  1996-03-04  |  44KB  |  762 lines

  1. GPS.txt 7.4c            GPS or LORAN INTERFACED TO APRS
  2.  
  3. NEW in version 7.1:  Added F8 Key to force an instant HSP fix.  ALso added
  4. the DF Single Port Mode (DFSP) which allows a DF unit to share a single
  5. comm port with the TNC and HSP/GPS.  Useful for DF mobiles.  See DF.txt.
  6.  
  7. NEW IN VERSION 6.8b and 7.2:  User feedback about the HSP switch implies 
  8. that there are lots of combinations of voltage swings from GPS units and
  9. different input requirements for PC serial ports.  You may need to experiment
  10. with one, two , or NO diodes in the emitter of the GPS switching circuit.
  11. Be sure to get the +voltage from a pin that has a low enough impedance
  12. to properly drive the circuit without significant voltage drop.  Also you
  13. may want to add a STAND-ALONE-TRACKER switch so that the GPS data can be
  14. routed to the TNC when the PC is not available.
  15.  
  16.  
  17. OVERVIEW: This file has evolved radically as this APRS project has developed.
  18. We began seriously parsing GPS data within APRS for amateur applications when
  19. the MAGELAN OEM GPS card became available for $445 in Sept 92 (down from
  20. $1000).  Later the Motorola OEM GPS card came down to the same price range,
  21. and these two devices were the only ones that we could find that were cheap
  22. AND which had USER programmable reporting rates (on the order of minutes) 
  23. so that they could be set up with only a only a TNC and radio as a tracking 
  24. device.  DRSI made a special APRS ROM for TAPR-2 clone TNC's to permit 
  25. power-up in the converse mode.
  26.  
  27.     Next, in August 93, I added the optional GPS serial interface to APRS
  28. for use as a moving map mobile display, but it required a second comm port.
  29. By Dec 93, APRS could share a single port if the GPS was programmable to
  30. a couple-of-minutes rate.  This was called the SINGLE-PORT-MODE (SPM).  
  31. Later I developed the HARDWARE-SINGLE-PORT (HSP) mode for use with ANY GPS
  32. regardless of its output rate.  In HSP mode, APRS toggles the DTR line on 
  33. the single serial port so that two transistors can then switch between the 
  34. GPS and the TNC on the same port.
  35.  
  36.      About this time, PACCOMM added a GPS interface command into its 
  37. TNC's that permitted you to build stand-alone trackers with MOST GPS's.
  38. Howie Goldstein, N2WX, also wrote special GPS commands into the standard
  39. TAPR-2 Clone TNC code.  AEA and Kantronics soon followed.  Now that handheld 
  40. GPS units cost less than $299 and all TNCs include GPS commands of some
  41. form or another, most people will probably prefer to purchase the handhelds.  
  42. The only remaining advantage of the OEM GPS cards is in totally autonomous 
  43. stand-alone tracking devices which can power up without human interaction.  
  44. When building a sealed up stand-alone package with GPS/TNC and radio, there 
  45. is still the problem of turning the GPS on and off!  Most hand-held GPS 
  46. units have a keyboard ON/OFF button.  In a stand-alone arrangement, even 
  47. if the GPS is running on external power, someone has to press the ON button!  
  48. Conversly, the OEM cards power up whenever power is applied.  This is 
  49. necessary to come on with the vehicle ignition.
  50.                                                               
  51. * * * * * * * * * *     CURRENT RECOMMENDATION SUMMARY  * * * * * * * * * *
  52.  
  53. ALL OF THE TNC GPS MODES (except the PacComm) ARE FOR STAND-ALONE TRACKING 
  54. APPLICATIONS, and in that mode, the TNC does nothing else.  The PacComm
  55. PicoPacket has two ports, one for the GPS, and one for the user, so it can
  56. transmit GPS posits regardles of how the user is using the TNC...
  57. The special GPS TNCs are NOT needed when the GPS is connected to APRS since
  58. APRS does all of the parsing and timing.  In this case, any TNC will do.  
  59. Select one of the following interface methods:
  60.  
  61. FOR DUAL-PORT LAPTOPS:   ANY NMEA GPS and ANY TNC will work with APRS
  62.  
  63. SINGLE-PORT LAPTOPS: Choose between the following options:
  64.  
  65.     A.  SPM (SINGLE PORT) MODE:  Program an OEM GPS circuit board to a 1 
  66.     or 2 minute rate and diode-OR the data with the TNC data to the same 
  67.     serial port.  There are occasional glitches when both the TNC and GPS 
  68.     data collide.
  69.  
  70.     B.  PUSH BUTTON MODE:  Configure APRS for SPM, and connect both the GPS 
  71.     and TNC to your serial port via a SPDT Push Button on your dashboard 
  72.     and press it for 2 secs whenever you want to see (and update to APRS) 
  73.     your current posit.  All the rest of the time, the TNC is connected and 
  74.     operates as a normal comm device.  Glitches will still occasionally 
  75.     occur since you are pressing the button in the middle of continuous 
  76.     data.                                       
  77.  
  78.     C.  HSP (HARDWARE SINGLE PORT) MODE:  Use ANY GPS with APRS in the HSP
  79.     mode using a simple two transistor interface which permits APRS to 
  80.     switch between the two devices.  This permits automatic GPS reporting 
  81.     and is an improvement on option B above.  Since APRS controls the 
  82.     toggling, the potential for garbling is further reduced than in A or B.  
  83.     (You can purchase a 9 pin APRS port splitter from PACCOMM, and a 25
  84.     pin HSP from AEA, or you can simply wire it up yourself)
  85.  
  86. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  87.  
  88. GPS EQUIPMENT SUMMARY
  89.  
  90.      The following are the only GPS units with which I have personal
  91. experience.  Any GPS or LORAN with a NMEA output should work just fine with
  92. APRS, and no-one has reported a NMEA device that DOES NOT work with APRS.
  93. Some Aeronautical models DO NOT have a NMEA output!  I do NOT use the
  94. USER interface and displays on most units since I only use the NMEA output 
  95. into APRS.  For this reason, my sole purchasing criteria has been price! 
  96. (including the data cable).  I have purchased one of each of the following 
  97. devices.  Many other APRS operators have used many other GPS devices, and 
  98. all with NMEA outputs work!  Good places to check for prices are:
  99.  
  100.   West Marine 1-800-538-0775    Currently (Feb 95) the GARMIN 40 is going
  101.   Boat US     1-800-937-2628    for $259 and the GPS-45 for $299
  102.   E & B       1-800-533-5007    these are LIST prices!
  103.               1-800-262-8464
  104.  
  105. MAGELAN OEM CIRCUIT BOARD:  My first GPS.  Cost $450 plus $130 antenna.  Well
  106. documented later in this file.  Output fully programmable and includes GGA,
  107. GLL and VTG data.  Great for any TNC for stand-alone.  LNA on board, can use 
  108. home-made antenna.  5 channel.  Obsolete! NMEA output no longer available!
  109.  
  110. MOTORLOA OEM CIRCUIT BOARD:  Very small circuit.  Requires active antenna.
  111. Output fully programmable and has GGA,GLL,VTG and RMC.  The RMC gives posit,
  112. CSE/SPD all in one packet.  Great for any TNC stand-alone.  5 channel.
  113. $380 with active antenna. $335 without.  VP-ENCORE is the latest 5 volt
  114. version (TTL) for $299. ($344 w/antenna).  These prices have been the same
  115. for over a year! (its now Jul 95).
  116.  
  117. GARMIN-50:    $300 and includes mounting bracket, NMEA cable and 6-40 volt 
  118. supply capability built in!  Has RMC, but does NOT have GGA (no altitude).  
  119. Handheld antenna can be remoted about 6 ft.  8 channel.
  120. CAUTION:  To make pilots spend more for the aeronautical version, all
  121. nautical GARMINS have a 90 kt limit and will NOT WORK above that speed!
  122.  
  123. GARMIN GPS-45:  Seems to be the most popular.  About the size of a tall
  124. cigarette pack, and includes a full graphic display.  Zoom in close and
  125. far out.  The graphics on the screen show your track relative to the 
  126. Waypoints and your own track history.  Driving 10 miles and back on the
  127. Interstate, revealed two side-by-side routes, perfectly separated by 100 feet
  128. plus the clover leafs!  Price of $299 INCLUDED bracket and detachable NMEA 
  129. cable.  Antenna is BNC and remotable too.  Replay track histories stored 
  130. in the unit into APRS conversion programs and build your own APRS maps.  
  131. Output is +/- 2.5 volts and is directly RS-232 compatible.
  132.  
  133. GARMIN GPS-40:  Same as the GPS-45, but has internal antenna only and less
  134. power supply voltage range.  About $50 less.
  135.  
  136.  
  137. MAGELAN MERIDIAN:   The latest Magelan Neridians no longer have the
  138. RMC sentence, which means that you cannot get Course and Speed in the same
  139. packet for a stand alone tracker with some TNC's.  It works fine with 
  140. direct connection to APRS though.  Call Magelan at 909-394-5073.
  141. Otherwise a good GPS.  Dropped below $250 recently.  Mounting bracket, 
  142. NMEA and external 12v converter are extra for $75, but are not needed if 
  143. you give it 6 volts and make your own data cable.  8 channel.  Handheld 
  144. antenna can be remoted about 6 feet.  Current drain is 130 ma.  Runs on 
  145. 3 AA cells.  Also has SAMPLING mode that extends battery life by factor 
  146. of 10 or more.  It wakes up every 10 mins locks on a posit and shuts down 
  147. again.  To get maximum life in this mode, be sure it sees the sky at all 
  148. times, or it will come on, and STAY ON until it gets a fix.  If you use a 
  149. circuit that senses the GPS current drain to switch the TNC and RADIO on 
  150. and off as well, you can make a stand alone tracker that will last about 
  151. 4 days on a set of AA alkalines, or 3 weeks on a set of D cells.  Using 
  152. this combined SAMPLING mode, you should set the TNC LOCATION rate to 30 
  153. seconds (my guess) so that you get at least one posit transmitted while 
  154. the combo is ON and getting a fix.  Check to see that the first fix 
  155. transmitted each cycle by your TNC is the latest one and not the one that 
  156. the TNC stored from the last power up cycle.  Below is the pinout, looking 
  157. at the back of the GPS with wire colors for their $80 power/data cable.  
  158. Note that you do NOT need their box for NMEA data, only for 6V power.  
  159. (This is MY OPINION.  I AM NOT LIABLE FOR ANY PROBLEMS IF YOU MAKE YOUR 
  160. OWN INTERFACE!)
  161.  
  162.   GPS    POWER/DATA CABLE BOX    WIRES OUT  SIGNALS
  163.  
  164.    *- +6V --[*reg*]-------------- Red       9 to 16 volts input
  165.    *--------[-----]-------------- Yellow    reserved for future
  166.    *--------[-----]-------------- orange    NMEA (+)
  167.    *--------[?????]-------------- white     -20k +100K continuity through box
  168.    *--------[-----]-------------- brown     NMEA (-)
  169.    *--------[-----]-------------- black     Ground
  170.  
  171. I do not know how they manage power internally, but the GPS will run from
  172. internal 3 AA cells with or without the cable attached.  If there is external
  173. power, it knows it, and switches to external power.  When external power goes
  174. away, THE GPS POWERS DOWN.  Pressing the ON button will power it back up again
  175. on internal power!  I haven't yet tested to see if SAMPLING mode is on, and
  176. it loses external power and powers down, if it will then still SAMPLE ON again
  177. later with INTERNAL power.
  178.  
  179. Final comments, the Meridian does NOT output any data unless it is getting 
  180. a good GPS fix.  THis means you will be doing a lot of troubleshooting
  181. out at the picnic table!  The Garmin, on the other hand, continues to output
  182. NULL NMEA strings with only the comma separators when it looses GPS lock.
  183.  
  184. TEKK DATA RADIO:  Not a GPS, but is a 2 watt UHF 9600 baud data radio about
  185. the size of a credit card (and 3/4 inch thick).  See page 18 in Feb 94 QST.
  186. Cost between $120 to $130.  Great for future 9600 baud POSITION REPORTING
  187. NET TO DEVELOP on 445.925 MHz.  See UHF-FREQ.txt.
  188.  
  189. MFJ DATA RADIO:  Advertised in Nov 94 MFJ catalog.  Is a 5 watt single 
  190. channel XTAL controlled 9600 baud capable data radio on 2 meters!  Costs $119 and comes
  191. crystaled on 145.01.  Rumor has it that they are considering providing a
  192. stock version on 145.79 for only $10 more if the demand is great enough.
  193. This should be ideal for APRS.  Call them at 1-800-647-8324.
  194.  
  195. 0.25 CUBIC INCH 500 mw XMTR!  Agrello Engineering 518-381-1057 is selling
  196. a postage stamp sized xmtr called the VFC400 for $99.  Glue it to your GPS
  197. with the PACCOM PICO-TNC and you have a hand-held stand-alone tracker!
  198.  
  199. PACCOMM PICO-TNC:  Smaller than a cigarette pack.  Has an optional 2nd GPS
  200. serial port!  Will sell for about $130 plus options..
  201.  
  202. MOTOROLA HT-220:  The venerable HAMFEST single channel HT can be bought for
  203. as low as $20.  After taking off the front and back covers, hacksawing off
  204. the battery compartment, and replacing the PTT switch with a tiny RELAY from
  205. Radio Shack (PN# 275-241, you have a nice 3/4 watt packet radio, about the
  206. size of a cigarette pack.  The PTT leads also carry the antenna RF, so put
  207. the relay in place of the PTT switch and keep the leads short.  Add $20 
  208. worth of crystals for 145.79, and away you go on 2-meters.  Be sure to get 
  209. the models that will tune down to 2m.
  210. ----------------------------------------------------------------------------
  211.  
  212. THE REMAINDER OF THIS FILE HAS THREE SECTIONS:
  213.  
  214.     The first describes the TNC GPS interfaces.
  215.     Second is the direct APRS software interface of GPS to your PC
  216.     Third is the direct TNC/GPS interface for building stand alone trackers
  217.        using the MAGELAN and Motorola OEM cards.
  218.     Forth, in March 94, I added a section on Differential correction.
  219.  
  220.  
  221. TNC GPS STAND ALONE TRACKERS:  All recent TNC's have some kind of GPS 
  222. command which allows you to hook up ANY NMEA-0183 GPS device to the serial 
  223. port and the NMEA position report will automatically be transmitted at a
  224. rate set by the user.   WHILE IN GPS MODE, the TNC is not used for packet 
  225. communications.  You may also connect some of these TNC's to an Ultimeter
  226. II weather station for remote reporting of WX conditions at your DIGI site.  
  227. To do this, the TNC must be able to be programmed to look for just a * or
  228. a # instead of the usual $xxxxx GPS strnigs.  (See WX.txt)
  229.  
  230.     Since each TNC implementation is different, you should refer to the
  231. instructions that come with your TNC.  I will describe the PACCOMM unit
  232. as an example.  They define a LOCATION TEXT similar to the BEACON TEXT 
  233. except that it is updated by the GPS (or manually entered).  This maintains
  234. the same distinction between BTEXT and POSITS that APRS already handles easily.
  235. Similaraly, the LText command allows you to manually enter your LAT/LONG or
  236. grid square in your TNC, even without a GPS, so that TNC's in networks will
  237. send their locations periodically.  The LText permits a free text format so
  238. that it is compatible with any future specific formats (currently APRS parses
  239. GGA, RMC, VTG, APRS L/L, PACCOMM and grid squares and a special APRS
  240. compressed L/L format) and there will probably be others too.
  241.  
  242.  
  243. DIRECT APRS GPS/LORAN INTERFACE OPTION:  The optional APRS GPS registration 
  244. enables APRS to read data from a GPS directly connected to the PC.  APRS 
  245. will not only plot the position of the attached GPS and its movements, but 
  246. will also transmit those position reports into the APRS net.  In this mode, 
  247. you can also select TRACK on the P-list to keep your mobile always on the 
  248. map.  There are four possible operational configurations:
  249.  
  250.      TNC only  - 1 Serial - Normal APRS for tracking other stations
  251.      TNC/GPS   - 2 Serial - Normal APRS with automatic GPS position update
  252.      GPS only  - 1 Serial - Tracking yourself (no other stations appear)
  253.      TNC/GPS   - 1 Serial - Single Port Mode will do both! See below
  254.      TNC/GPS   - 0 Serial - Stand-alone-tracker.  Doesnt use APRS except to
  255.                             plot the resulting packets off-the-air
  256.  
  257. NMEA INTERFACING NOTES:  To interface a NMEA device to your APRS computer,
  258. note that NMEA and RS-232 are not exactly compatible.  The NMEA specification
  259. is actually EIA-422, an isolated differential receive circuit.  But in most
  260. cases it should also work by simply connecting the NMEA pin A to RXD and pin
  261. B to ground.  Both standards are the same sense, with NMEA a 0 and +5 volt
  262. signal, and RS-232 a -3 and +3 volt signal.  The direct connection may not
  263. work with many serial interfaces without a (-) voltage pulldown resistor.
  264. (Some GARMINs use a good +/- voltage swing and do NOT need these resistors).
  265. Often a series 1k resistor and a 5 to 10k resistor tied to your unused TXD
  266. data line will suffice to provide the - voltage:
  267.  
  268. GPS NMEA OUT                                           LAPTOP SERIAL PORT
  269.                        1 k
  270.    A  >-------------/\/\/\/\---*------------------------> RXD
  271.                                |          10K
  272.                                *-------\/\/\/\/\--------< TXD
  273.  
  274.    B  *-------------------------------------------------* GND
  275.  
  276.  
  277. NOTE!  If you use this kind of biasing on our GPS when connected to a TNC,
  278. such as the PACCOMM for a stand-alone-tracker, be sure to set ECHO OFF so that
  279. echoed data does NOT come back to the GPS on the TXD line!  If data comes out
  280. of the TNC, then with the bias resistor, it will garble the data trying to
  281. come in!  Also, do NOT connect your PC serial output to your GPS NMEA input
  282. if there is one, since APRS does not send anything to the NMEA device.  It
  283. has been reported that the TRAXAR GPS devices may lock up if you connect
  284. anything to the NMEA input (remove the battery and do a hard reset to get it
  285. back!)  Of course, if you are using one of the programmable OEM cards, then
  286. you WILL make this connection in order to send commands to the GPS.
  287.  
  288. Once your serial port is set to the NMEA-0183 standard baudrate of 4800 baud,
  289. you should begin to see raw NMEA data.  My APRS software recognizes four of
  290. the NMEA-0183 formats:
  291.  
  292.     $GPGGA - for position and height  (no loran equivalent)  ] Use only one
  293.     $GPGLL - for position only        ($LCGLL for LORAN)     ] of these two
  294.     $GPVTG - for velocity and course  ($LCVTG for LORAN)
  295.     $GPRMC - Posn, Course and speed   (Has all but height) (not in MAGELAN)
  296.     $PMGLB - Magelan Altitude
  297.     $PGRMZ - Garmin Altitude
  298.  
  299.     APRS scans the interface data looking for a valid NMEA-0183  GLL/GGA/RMC
  300. or VTG data format to extract position and speed information.  The data on
  301. the NMEA interface is continuous and refreshed every second or two.  In order
  302. not to saturate an APRS net or to overload your disk storage or to slow down
  303. your other APRS keyboard processing, APRS only samples the data at slower rate.
  304. This is called the REFRESH rate and is set during intitialization of APRS for
  305. GPS or by using the alt-S-POSRATE command.  This period determines how often
  306. your screen is updated from your own GPS.  APRS also has another period called
  307. PACKET PERIOD which is usually set for 1 to 10 minutes also using the alt-S-
  308. POSRATE command.  We have found that 30 seconds updates are OK for special
  309. events when there are only a few mobile APRS stations.  As more and more
  310. stations go mobile with GPS/APRS, 1 minute or 2 minute updates are more
  311. appropriate.  To further reduce channel loading, APRS will decay the period
  312. when the station is not moving.
  313.  
  314.  
  315. GPS MOBILE AND TNC WITH ONLY ONE SERIAL PORT (Single Port Mode)
  316.  
  317.      Since the data rate from the user programmble MAGELAN or Motorola GPS
  318. cards (and some LORANS) can be set to once a minute or so, this data can be
  319. simply diode-ORed with the TNC output into a single serial port.  In the APRS
  320. single port mode (SPM), APRS can distinguish between packet headers from the
  321. TNC and the unique identifiers of the NMEA data.  The only problems with this
  322. arrangement are data collisions about 1% of the time and ambiguity on
  323. incomming VTG packets.  APRS resolves the $GPVTG position ambiguity problem
  324. by ONLY matching up a VTG sentence if it has been received within 1 second of
  325. a GGA or GLL from a known station.
  326.  
  327.           DIODE OR-ing of GPS and TNC in SINGLE PORT MODE:
  328.  
  329.  
  330.     GPS DATA OUT  >----------*------>|--------*----->  TNC RXD
  331.                              |----/\/\/\/\----|
  332.                                               |
  333.     TNC DATA OUT  >----------*------>|--------*        both R's abt 10K
  334.                              |----/\/\/\/\----|
  335.  
  336. A simple SPDT PUSH BUTTON switch can do the same thing but for ANY GPS that
  337. is outputting data continuously.  This has the advantage that it gives the
  338. user control of when he wants a FIX.  Since all NMEA GPS devices provide 
  339. NMEA position reports at least every 2 seconds, the operator only needs
  340. to press and hold the button for 2 seconds, in order to get a posit.
  341.  
  342.    To activate this Single Port Mode (SPM), bring up APRS in one-port TNC 
  343. mode being sure to set the TNC to the same BAUD RATE as your GPS.  Then 
  344. enter the ALT-S SETUP Menu.  Select SPM under the GPS selection and then 
  345. do SETUP again to SAVE the config file.  You will be asked for your 
  346. regular validation and your GPS number. If you did this correctly, you 
  347. will see the lower case (spm) on the yellow control panel go to uppercase.  
  348. ALSO NOTE THAT BOTH THE TNC AND THE GPS MUST BE RUNNING AT THE SAME BAUD 
  349. RATE. THIS IS USUALLY 4800 BAUD FOR NORMAL NMEA OUTPUTS.
  350.  
  351.    In the Single Port mode, the screen refresh rate is set by the period
  352. programmed into your programmable GPS (45 seconds or longer is about right).
  353. The position report transmission rate from APRS to the TNC is set by 
  354. POS-RATE command in the SETUP Menu.
  355.  
  356.  
  357. HARDWARE SINGLE PORT MODE  (HSP)  FOR USE WITH ALL GPS UNITS:
  358.  
  359.  
  360.      APRS can control the switching of the Single Port Mode between the TNC
  361. and ANY GPS using the handshaking lines of the COMM port and a simple two
  362. transistor switch soldered into the serial port data connector hood.  This
  363. mode is called the HSP mode.  In this HSP mode, APRS periodically toggles the
  364. DTR output of the serial port for a second or so whenever it needs data from
  365. the GPS.  With DTR held high (normal) the GPS data is shunted to GND while
  366. the TNC operates normally.  When APRS toggles the DTR low, this holds off
  367. output from the TNC, but also enables data through the emitter follower from
  368. the GPS.  As soon as APRS receives the GPS data it needs, it restores DTR so
  369. the TNC is connected for normal APRS operations.  In some TNC's, (PACCOMM)
  370. the RTS is used instead of the DTR for holding off TNC data.  Also, this
  371. circuit uses your PC RTS line to derive a cource of +V.  If the impedance of
  372. your PC RTS line is not strong enough, you might need to get it from the TNC's
  373. DSR line.  REMEMBER THAT YOUR TNC AND GPS MUST BE SETUP AT THE SAME BAUD RATE,
  374. usually 4800 baud.
  375.  
  376. PACCOMM now sells this little circuit assembled inside of DB-9 connector
  377. with two pigtail connectors for your TNC and GPS for about $30.
  378.  
  379.                                       *------------------< +V (PC RTS)
  380.  GPS NMEA                           |/ c                   or TNC DSR)
  381.    >--------------/\/\/\/---*----*--|
  382.  OUTPUT              1k     |   NPN |\ e     * see important notes below
  383.                             |         *--->|-->|---*-----> RXD
  384.  TNC RXD                    |              diode   |               
  385.    >--*-------------------------------*----->|-----*
  386.       |       15k           |         |    10k     |       SINGLE
  387.       *-|<-*-/\/\/--*-------*         *---/\/\/\/--*       LAPTOP
  388.            | note 1 |      c \|                            RS-232
  389.           ===       |         |--*--------/\/\/\/--*       PORT
  390.            | 1uF    |      e /| NPN        10k     |
  391.  TNC DTR  ---       |       |                      |
  392.  (or RTS) ///       |     ////                     |
  393.    <-----------------------------------------------*-----< DTR
  394.                     |                  1uF
  395.                     |-----/\/\/\----*--||--------*
  396.                     |      15k      |            |
  397.                     |     note 2    *-->|--*    ---
  398.  TNC TXD            *                      |    ///
  399.    <--------*-----> *----------------------*-------------< TXD
  400.                 SW-1
  401.    *-----------------------------------------------------* GND
  402.  GND
  403.  
  404. Note1: This resistor-diode-cap provides a little -V bias to the GPS output 
  405.        line going to SW-1 when the GPS is used with the TNC only in
  406.        stand alone tracker mode (no PC).  
  407. Note2: This 10K resistor-diode provides a little -V bias to the GPS output
  408.        when the PC and GPS are operated alone (WITHOUT the TNC).
  409.  
  410. I installed these components in a back-to-back DB-9 connector on the cable
  411. comming from my GPS so that it is always handy.  Almost any NPN transistor 
  412. and switching diodes will work.  A 2N2222 is fine.  In version 7.2, I added
  413. the SWITCH SW-1 so that you can easily re-configure for STAND-ALONE-TRACKER
  414. without re-cabling.  You still need to use the laptop to tell the TNC to
  415. got to GPS mode, however.  In the implementation below you will notice that 
  416. a dotted line shows how to add just one wire to take the output of the TNC 
  417. to the DGPS input of the GPS if your GPS is DGPS capable and if someone in 
  418. your area is transmitting DGPS data on your packet channel.
  419.  
  420.  
  421. PHYSICAL LAYOUT OF BACK-TO-BACK DB-9's WITH HSP CIRCUIT INSTALLED
  422.  
  423.  
  424.                 1     2     3     4     5   DB-9 FEMALE TO COMM PORT
  425.                 O     O     O     O     O
  426.                       |  7  |     |     |
  427.                    O  |  O  |  O  |  O  |
  428.                       |  |  |     |     |
  429.                       |  |  |     |     |
  430.   NMEA      N C------ | -*  |     |     *--------E N
  431.   FROM      P E--->|--*     |     *---- | -/\/\/-B P  (2N2222 or equiv)
  432.   GPS       N B---*-- | --- | --- | --- | -------C N
  433.                   |   |     |     |     |
  434.                   |   *--*  |     |     |
  435.    A >-----/\/\/--*   |  |  |     |     |
  436.                       \  -  |     |     |
  437.    DGPS < - - - - *   /  ^  |     |     |
  438.                   |   \  |  |     |     |
  439.                   |   |  |  |     |     |
  440.                   * - *--*  |     |     |
  441.    B ---------------- | --- | --- | ----*
  442.                       |     |     |     |
  443.                       |     |     |     |
  444.                 O 1   O 2   O 3   O 4   O 5   DB-9 MALE TO TNC CABLE
  445.  
  446.                    O     O     O     O
  447.  
  448.  
  449. In this adapter, the voltage to provide the -V bias to convert the NMEA 
  450. output to RS-232 levels comes from the RXD output of the TNC.  For this 
  451. reason, if the GPS is used alone with the PC, without the TNC, you must 
  452. include the components of note2.  OR you may connect a jumper between 
  453. pins 2 and 3 of the empty TNC connector.  This takes the -v from the 
  454. unused TXD output of the PC.  I recommend carrying a stubby DB-9 female 
  455. connector with this jumper permanently installed.
  456.  
  457.                 O 1   O 2   O 3   O 4   O 5   FEMALE STUB USED TO PROVIDE
  458.                       |     |                 -V BIAS WHEN TNC IS NOT USED
  459.                    O  |  O  |  O     O
  460.                       |     |
  461.                       *-----*
  462.  
  463. HSP OPERATIONS:  The set up procedure for HSP is identical to SPM, except 
  464. that HSP vice SPM is selected from the SETUP menu.   To activate HSP, bring 
  465. up APRS in one-port TNC mode being sure to set the TNC to the same BAUD 
  466. RATE as your GPS, probably 4800.  Then select HSP under the SETUP menu and 
  467. then SAVE a new CONFIG file.  You will be asked for your validation number 
  468. and special GPS number.  If everything is done correctly,  you will see the 
  469. lower case (hsp) on the yellow control panel shift to uppercase.  In HSP 
  470. mode both the screen refresh rate and position transmission rate are set 
  471. with the POS-RATE command.  You may force an HSP update at any time by 
  472. pressing the F8 key.
  473.  
  474. CAUTION:  This interface is operating with very slim or no voltage margins
  475. depending on your particular PC, GPS and TNC.  Some experimenting may be
  476. required to make it work for you.  Notice that one or two or NO series diodes 
  477. in the emiter lead of the GPS switching transistor may be required depending 
  478. on your particular GPS and PC serial port.  A second diode may be needed if 
  479. your PC needs to see a greater negative voltage on the RS-232 input.  The 
  480. second diode provides an additional .7 volt drop to a negative 1.4 volts 
  481. instead of the negative 0.7 volts that the single diode circuit provided.  
  482. Since this additional voltage drop also lowers the maximum positive voltage 
  483. by the same amount, do NOT add this diode, unless your PC needs it.  If you 
  484. are having garbling problems, try it with and without the second diode.
  485.  
  486. IF YOU ARE USING A GARMIN 45 YOU MIGHT NEED TO TAKE BOTH diodes out, since
  487. the GARMIN ouputs +/- voltages...
  488.  
  489.  
  490. US NAVY MAGNAVOX 1105 SATNAV SYSTEM:
  491.  
  492.    I did write a version of APRS that is plug compatible with the MAGNAVOX
  493. 1105 SATNAV system.  This is a 1970's vintage TRANSIT SATNAV system found on
  494. many US NAVY ships.  If you have use for this module, please contact me.
  495.  
  496.  
  497. NOTES ON MOBILE GPS OPERATION:  See the MOBILE.txt file.  Here are some tips:
  498.   * write down your V#'s IN THE CAR!  YOu never know when you may need to
  499.   re-configure your system.
  500.   * Recommend making a trimmed down disk with only the maps you will need.
  501.   * When you QUIT APRS, your TRACK HISTORY is NOT saved UNLESS you sepcify a
  502.   file name OTHER than BACKUP.BK (or do a FILE-SAVE).
  503.   * Use the TRACK mode to keep yourself on the map.
  504.   * Set your refresh rate to a long enough time period (20 sesc or more) so
  505.   that APRS is not always processing GPS and has time to service the keyboard.
  506.   * Make notes of any map errors or disagreements with GPS, and when you get
  507.   home, use MAPFIX.bas, to replay your track history and fix the map easily.
  508.   * Use the TIME-SYNC command to sync your PC time to GPS time on the next
  509.   receipt of a GGA or RMC sentence.  This eliminates dead-reckoning errors.
  510.  
  511. For most highway maps and 1 minute reporting at 60 MPH, zooming in below
  512. eight miles is usually a waste of time.  For this reason don't waste your
  513. time making maps with every little twist and turn in the road; it just takes
  514. time and memory and makes no difference.  A straight line between A and B is
  515. not as pretty, but shows the road as well as 20 points showing all the curves.
  516. If you do save any RAW GPS data outside of the APRS environment, the following
  517. two programs may be useful in reconstructing GPS data.  They are provided
  518. as-is, since I just wrote them for a quick task a long time ago, but thought
  519. they might be useful to others as a basis for writing your own routines.
  520.  
  521. FILTRHST.bas:  APRS automatically builds a track history for all moving
  522. stations.  APRS avoids saving redundant position reports automatically with
  523. its POS-FILTER.  The default value of the filter is wide enough to include the
  524. variations in position due to GPS selective avaiability. (+/- 0.03 minutes)
  525. With the filter off, this is reduced to 0.01.  FILTRHST.bas can be used to re-
  526. filter a track history file to remove additional points.  Use the source code
  527. to write your own filters for your own needs.  In addition to filtering, this
  528. program can be used to combine a number of separate track history files into
  529. one file.
  530.  
  531. GPStoHST.bas:  This program will take any DOS text file and generate an APRS
  532. track history file.  It only looks for the GGA and VTG NMEA-0183 sentences
  533. and combines them into the one line APRS format.
  534.  
  535.  
  536.  
  537. STAND-ALONE GPS TRACKERS FOR MOBILES WITHOUT PC's
  538.  
  539. (Note that this section is somewhat obsolete due to the availability of
  540. cheap handheld GPS's and TNC's with GPS mode built in.  BUT for Balloons, 
  541. and small stand-alone tracking boxes for taping to the roof of special 
  542. vehicles for special events, using the innexpensive OEM cards, is still 
  543. a viable way to go.
  544.  
  545.     This method has the advantage of transmitting any of the NMEA-0183
  546. sentences (to include course, speed and altitude) but requires the use of
  547. special programmable GPS/LORAN devices that give the user the ability to
  548. modify the periodicity of the data reported via the interface.  In most
  549. devices, navigation data is continually updated about every two seconds at
  550. 4800 baud, far too much data to transmit over a shared AX.25 packet link.  
  551. Fortunately there are a few old LORANS and some OEM GPS cards which can be 
  552. configured by the user to output a report once every N minutes or hours.
  553.  
  554. 1.    The original MAGELAN OEM 5000 board is no longer available.  It has 
  555. been replaced by a $295 5 volt/TTL card that DOES NOT HAVE A NMEA OUTPUT.  
  556. This makes the remainder of this section referring to the MAGELAN OEM card, 
  557. valuable for historical purposes only.   Call MAGELAN, 960 Overland Ct, 
  558. San Dimas, CA 91733, phone 909 394-5000.  
  559.  
  560. 2.  The Motorola OEM prototype card has a programmable period and includes
  561. the RMC message which contains both position and course/speed in one NMEA
  562. sentence.  Call  MOTOROLA, 800 421-2477 and ask for their
  563. latest OEM circuit board.   Many of their models require an external 20 dB 
  564. active antenna. They can output altitudes to 56,000 feet in the GGA message.
  565. Unfortunately, they do not include all the DOCS and the user setup software
  566. in the quantity-one shipment.  That costs an additional $1200 for their full
  567. development package.  I wrote a program called MOTOROLA.BAS which will allow
  568. you to send the needed initialization and NMEA timing commands.  This program
  569. will also generate the command to take the OEM card out of its default BINARY
  570. format, and place into NMEA format.
  571.  
  572.      An automatic vehicle tracking system can be assembled by simply
  573. connecting the RS-232 output from one of these programmable GPS's directly
  574. into the TNC, setting the periodicity to 1 minute or so and selecting only
  575. the RMC or GGA/VTG sentences to be output.  The TNC must be placed in UNPROTO
  576. CONVERSE, and from then on, every minute a GPS position report will be
  577. transmitted.  The APRS software decodes raw NMEA data off-the-air in addition
  578. to the defined APRS formats.
  579.  
  580. GPS ENGINE SET UP:  Follow all manufacturer instructions for initializing 
  581. your GPS engine using your PC and their setup program.  After the system 
  582. is running and producing fixes, send commands to enable GGA/VTG or RMC 
  583. data between 30 to 120 seconds using the following commands:
  584.  
  585. MAGELAN COMMANDS:
  586. $PMGLI,00,B00,7,A  (for GGA GPS position only)       Where 6 = 30 Secs
  587. $PMGLI,00,B01,7,A  (for GLL LORAN position only)           7 = 1 Minute
  588. $PMGLI,00,EOO,7,A  (for course and speed with either)      8 = 2 Minutes
  589.                                                            9 = 5 minutes
  590.  
  591.      Each line must end with a carriage return-linefeed.  The GPS engine
  592. gives no responses to commands, other than doing what it is commanded.  You
  593. might try a value of 5 which is once every 10 seconds as a test to be sure
  594. the GPS card is recognizing your commands.  The commands for the MOTOROLA
  595. card are similar, but MUST have the proper checksum.  Use my MOTOROLA.BAS
  596. program to send these commands with proper checksum calculated...
  597.  
  598. MOTOROLA COMMANDS:
  599. $PMOTG,GGA,0030*csCRLF (sets up GGA once every 30 secs)
  600. $PMOTG,RMC,0060*csCRLF (sets up RMC once every 60 secs etc..)
  601.  
  602. BATTERY BACKUP:  Be sure to add the battery back up supply so that the card
  603. can be turned off without having to re-initialize every time.  Each of the
  604. cards has a connection for a 3.6 volt battery.  I use 3 AA cells soldered
  605. together.   3 volt cells are NOT enough.  DO NOT EXCEED 5 VOLTS!
  606.  
  607. TNC SETUP DETAILS:  If your OEM card does NOT output the RMC sentence, (such
  608. as the Magelan), and you want course and speed, you must use the GGA and also
  609. the VTG sentence.  These two sentences are separated by enough time that the
  610. TNC usually generates two packets, one right after the other.  This is a
  611. problem if a digipeater path is used, because the digipeater will begin
  612. digipeating the first position fix packet and cover up the trailing velocity
  613. packet.  To solve this problem, (not needed for balloons which dont need
  614. digipeaters), the sending TNC needs to be instructed to send packets not on
  615. receipt of every carriage return, but on a timing function.  Set CPACTIME ON
  616. and change the SENDPACK character from $0D to anything else (say $01).  This
  617. way, both the position fix and velocity lines will be sent together in the
  618. same packet one second after the last character is received from the GPS.
  619. This packet, containing two frames, will then be digipeated all together by
  620. the digipeater with no break in between.  If you use the Motorola card,
  621. with the RMC sentence, this double packet problem does not exist.
  622.  
  623. LINEFEEDS and FLOW CONTROL:  Since the GPS is sending each line with a CR/LF
  624. on the end, your TNC will always end up placing the superfluous linefeed at
  625. the beginnning of the next packet.  To defeat linefeeds, set LFIGNORE on.
  626. (for the non-standard TNC products, try the Linefeed Supress, LFS ON)
  627. Similarly, your terminal program must send CR-LF on each command to the GPS
  628. card.  When you try to talk to your TNC with CR-LF, you will experience a
  629. lockup condition since the extra LF will look to the TNC like the beginning
  630. of a new command line and will hold off all TNC output.  To overcome  this
  631. problem, set FLOW OFF.  Here are the commands which must be changed from
  632. factory defaults for most TAPR-2 TNC's:
  633.  
  634.   ECHO OFF,  FLOW OFF,  LFIGNORE ON,  CPACTIME ON, SENDPAC $01
  635.  
  636. (Remember that you have SENDPAC set to $01, and change it back to $0D for
  637. normal packet operations!   I was pulling my hair out while driving through
  638. Knoxville and trying to connect to the local BBS node.  It ignored all of my
  639. node commands as if I was personna-non-grata!  I finally realized it didn't
  640. like the $01's being imbedded in my packets!)
  641.  
  642. UNPROTO-CONVERSE-MODE:   And now for the last problem; keeping the TNC in
  643. converse mode.  Since TNC's always default to command mode when turned on,
  644. they cannot be expected to operate autonomously with GPS data supplied to
  645. their inputs from power up.  As of 1995, most new TNC's now include some
  646. kind of UI mode that will force the TNC to power up in CONVERSE.  To get out
  647. of this mode, you just hit ctrl-c as usual.
  648.  
  649.  
  650. DUMB TERMINAL SETUP:  So I can see the command that I am typing into the GPS
  651. card, I configure my terminal device as half duplex.  The GPS also needs the
  652. CR/LF sequence at the end of each command, so I set the terminal to translate
  653. CR to the CR/LF sequence.  In order to use the same terminal with the TNC,
  654. then, that is why I turn ECHO and FLOW off in the TNC.  I wired my GPS/TNC box
  655. with one DB-9 serial connector and two switches to select whether the terminal
  656. is talking to the GPS or the TNC, and the second switch to enable the data
  657. output from the GPS to go into the TNC after all configuration is complete.
  658.  
  659. SYMBOLS:  APRS has more than 40 different symbols.  To make a simple TNC/GPS
  660. tracking combo specify its own symbol character, I have devised two methods.
  661. First, when APRS receives a raw NMEA position report over the air, it will
  662. use one of 15 default symbols based on the callsign SSID.  See SYMBOLS.txt.
  663. Secondly, any of the APRS symbol designation characters can be placed at the
  664. beginning of the TNC BText surrounded by {} braces.  Once the BText with that
  665. symbol is received, the station will then appear with the proper display
  666. symbol.
  667.  
  668.  
  669. We have assembled a nmumber of these GPS/PACKET tracking devices.  In fact,
  670. the small OEM cards can be included within some of the larger TNC enclosures.
  671. THen add two switches to the front panel to select whether the external
  672. terminal device is talking to the GPS or TNC, and to enable or disable GPS
  673. packet reporting.  Other smaller packages have been made using the very
  674. small TNC's and the TTL only models of the OEM cards, but I shy away from 
  675. the TTL versions for the casual experimenter because of the absence of any 
  676. data or power supply buffering.  One wiring error or static charge and you 
  677. have blown a $295 card!
  678.  
  679. MOST OF THIS TEXT AND THE HOOK-UP SCHEMATICS WERE PUBLISHED
  680. IN THE FEB 94 ISSUE OF QEX.
  681.  
  682.  
  683. BUILDING A STAND-ALONE TRACKER WITH ONLY A 5 VOLT TTL OEM GPS UNIT:
  684.  
  685.    Building a tracker out of a 5 volt TTL GPS and any of the TAPR-2 CLONE 
  686. TNC's is trivial.  In the PACCOMM TINY-2, MFJ-1274, and DRSI-DPK2 there is 
  687. a diode in the TXD circuit to provide isolation between the RS-232 converter 
  688. chip and the TTL modem disconnect header.  This diode is labeled D7, CR22, 
  689. and D12 respectively.  By providing the GPS TTL data output to the RXDB 
  690. line (pin 5) of the modem disconnect header (via a reverse biased diode) 
  691. the GPS NMEA data will be transmitted by the TNC.  Similarly, by tapping 
  692. off of the cathode of this diode, the TTL data from an attached terminal 
  693. can be sent to the GPS input.  With the TNC in converse mode, setup commands 
  694. from the terminal are not only transmitted on the air (without confusing the 
  695. TNC) but also sent to the GPS unit.  Conversly, GPS data is always 
  696. transmitted on the air, but if ECHO is on in the TNC, then the GPS output 
  697. is also echoed back out to the attached terminal!  In this manner, no 
  698. external switches are required to switch between talking to the GPS unit 
  699. and the TNC.  Of course, the GPS sees everything sent from the terminal, 
  700. but will IGNORE everything that does not match a GPS setup command.
  701.  
  702.  
  703.  
  704. DIFFERENTIAL CORRECTION
  705.  
  706. Tom Clark (W3IWI) experimented with a Differential GPS xmtr in the Wash DC
  707. area transmitting 30 second DGPS data on the APRS freq.  APRS GPS mobiles can now
  708. obtain accuracies to 5 meters or so.  We are pleased to report that the RTCM-
  709. 104 format works perfectly well with APRS and with TNC's:
  710.  
  711. *  The GPS rcvrs seem to ignore the packet headers and act on the RTCM data
  712. *  The RTCM gybrish is all printable ASCII and does not garble APRS screens
  713.  
  714. Although this is an excellent demonstration and there are surely HAM
  715. applications that can take advantage of the DGPS accuracy, APRS is probably
  716. not one of them.  First, APRS is not concerned with NAVIGATION accuracy,
  717. because  a) no maps are that accurate (with DGPS you can make 'em so!), and
  718. b) the purpose of APRS is to inform others of mobile locations over a wide 
  719. VHF area, NOT to the nearest 15 feet.  (APRS formats do maintain positions 
  720. to 60 foot precision)  Secondly, A mature APRS net involved in a special 
  721. event or activity, can probably NOT handle the QRM from 30 second RTCM 
  722. transmissions.  In the long term, the DGPS data should probably be 
  723. transmitted MORE OFTEN and on another frequency, OR be remotely controlled 
  724. such that it can be requested by a mobile user on demand, but silenced most 
  725. of the time.  Transmitting less often is meaningless due to latency of the 
  726. data.  The only application of DGPS that I can think of is to keep track of 
  727. golfcarts at a hamfest, and be able to see who's booth they are at.  I will 
  728. probably incorporate a ?RTCM? format in APRS to permit stations to request 
  729. DGPS data.
  730.  
  731. I am not negative about this at all, I am only pointing out that there is NO
  732. need for you to feel that you need to rush out and implement a DGPS system
  733. in your area for APRS.
  734.  
  735. DGPS TRANSMITTER SET UP:  Set your TNC to transmit TO DGPS instead of the
  736. usual TO APRS and set up whatever UNPROTO path is desired to cover the area.
  737. Then enter the location of the DGPS transmitter into the TNC BText in the
  738. usual format making sure to use the special (.) symbol in the symbol field:
  739.  
  740.   BT !3859.11N/07629.11W.RTCM transmitter operated by TOM W3IWI...
  741.  
  742. Everything after the (.) symbol character is free text.  APRS will flash a
  743. DGPS flag on the screen each time it hears a DGPS transmission, but will 
  744. not add the station to the L or P-Lists unless it also sees the (.) symbol 
  745. in the position report.  Set your beacon to every half hour or so.  Finally, 
  746. set your TNC into CONVERSE and tell your RTCM-104 DGPS receiver to output 
  747. once every 30 seconds.
  748.  
  749. See the new HSP mode schematic above where I added the interface wire between
  750. your TNC and GPS for automatic DGPS operations.
  751.  
  752. CONFIGURING FOR DGPS:  There are two options for routing the DGPS data from
  753. your TNC to your GPS unit:  1) For ANY arrangement: run an external wire from
  754. your TNC RXD data output over to your GPS DGPS data input.  2) For dual port
  755. operations only:  connect your GPS DGPS input to the PC serial port TXD line
  756. and select DGPS from the SETUP menu in order to enable DGPS data output from
  757. APRS.
  758.  
  759. CAUTION:  This will not work if you are operating in the SPM or HSP modes or
  760. if you are using the same serial port TXD output as a source of -V bias for
  761. the NMEA conversion as suggested in the above paragraphs.
  762.